package DP.decoration.common.decorator.impl;

import DP.decoration.common.component.Component;
import DP.decoration.common.decorator.Decorator;

/**
 * @author msi
 * 具体的装饰类
 */
public class ConcreteDecorator1 extends Decorator {
    public ConcreteDecorator1(Component component) {
        super(component);
    }

    private void method1(){
        System.out.println("method1 修饰");
    }

    @Override
    public void operate(){
        this.method1();
        super.operate();
    }
}
